import service from "./request";

// 专业管理
export function teacherpage(params,page =1){
    return service({
    url: '/admin/teacher/page/' + page,
    method: 'get',
    params: params
  })
}
// 专业 页数
export function teacherpageCount(params){
    return service({
    url: '/admin/teacher/page/count',
    method: 'get',
    params: params
  })
}
// 系的名称/admin/department/names
export function teacherdepartment(){
    return service({
    url: '/admin/department/names',
    method: 'get',
  })
}
// 添加
export function teacheradd(data){
    return service({
    url: '/admin/teacher/',
    method: 'post',
    data
  })
}
// 删除
export function teacherdelet(id){
    return service({
    url: '/admin/teacher/'+id,
    method: 'delete',
  })
}
// id获取信息
export function teachertail(id){
    return service({
    url: '/admin/teacher/'+id,
    method: 'get',
  })
}
// 编辑
export function teacheredit(data){
    return service({
    url: '/admin/teacher/',
    method: 'put',
    data
  })
}